package com.yanqu.road.entity.qixi;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.DataStatus;
import com.yanqu.road.entity.FieldTypeAnnotation;

@FieldTypeAnnotation(tableName = "t_u_qixi_relation", desc = "七夕关系数据")
public class UserQixiRelationData extends DataObject {
    @FieldTypeAnnotation(select = true, update = true, desc = "活动id")
    private int activityId;
    @FieldTypeAnnotation(select = true, update = true, desc = "用户id")
    private long userId;
    @FieldTypeAnnotation(select = true, update = true, desc = "对方用户id")
    private long targetUserId;
    @FieldTypeAnnotation(desc = "收对方花数,人气值")
    private int getFlowerCount;
    @FieldTypeAnnotation(desc = "送对方花数,人气值")
    private int sendFlowerCount;
    @FieldTypeAnnotation(desc = "收对方花时间")
    private long getTime;
    @FieldTypeAnnotation(desc = "送对方花时间")
    private long sendTime;

    public UserQixiRelationData(int activityId, long userId, long targetUserId) {
        this.activityId = activityId;
        this.userId = userId;
        this.targetUserId = targetUserId;
        setInsertOption();
    }

    public UserQixiRelationData() {
    }

    public int getActivityId() {
        return activityId;
    }
    public void setActivityId(int activityId) {
        if (this.activityId != activityId) {
            this.activityId = activityId;
            setOp(DataStatus.Update);
        }
    }

    public long getUserId() {
        return userId;
    }
    public void setUserId(long userId) {
        if (this.userId != userId) {
            this.userId = userId;
            setOp(DataStatus.Update);
        }
    }

    public long getTargetUserId() {
        return targetUserId;
    }
    public void setTargetUserId(long targetUserId) {
        if (this.targetUserId != targetUserId) {
            this.targetUserId = targetUserId;
            setOp(DataStatus.Update);
        }
    }

    public int getGetFlowerCount() {
        return getFlowerCount;
    }
    public void setGetFlowerCount(int getFlowerCount) {
        if (this.getFlowerCount != getFlowerCount) {
            this.getFlowerCount = getFlowerCount;
            setOp(DataStatus.Update);
        }
    }

    public int getSendFlowerCount() {
        return sendFlowerCount;
    }
    public void setSendFlowerCount(int sendFlowerCount) {
        if (this.sendFlowerCount != sendFlowerCount) {
            this.sendFlowerCount = sendFlowerCount;
            setOp(DataStatus.Update);
        }
    }

    public long getGetTime() {
        return getTime;
    }
    public void setGetTime(long getTime) {
        if (this.getTime != getTime) {
            this.getTime = getTime;
            setOp(DataStatus.Update);
        }
    }

    public long getSendTime() {
        return sendTime;
    }
    public void setSendTime(long sendTime) {
        if (this.sendTime != sendTime) {
            this.sendTime = sendTime;
            setOp(DataStatus.Update);
        }
    }
}
